package pro.lingwu.station.service;

import pro.lingwu.station.exception.HasValueException;
import pro.lingwu.station.dto.db.Ticket;

import java.util.List;

/**
 * @author @lingwu
 * @date created in 12/27/2021
 */
public interface TicketService {

    // 对应数据访问层的操作应该都是更新票的status、passenger、account
    void buyTicket(Ticket ticket) throws HasValueException;
    void rmTicket(Ticket ticket);

    List<Ticket> findTickets(Ticket ticket);

}
